package com.khayal.e_sbha;



import android.app.Activity;
import android.content.res.AssetManager;
import android.graphics.Typeface;
import android.os.Bundle;
import android.widget.TextView;
import com.khayal.e_sbha.ArabicUtilities;
 
public class arabicfont extends Activity{
    AssetManager arabi_font;
    TextView tx;
 
    /** Called when the activity is first created. */
    @Override
 
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fullscreen);
        //tx=(TextView)this.findViewById(R.id.tt);
    
        try{
            //DejaVuSans.ttf font file
            tx.setTypeface(Typeface.createFromAsset(getAssets(),"dejavusans.ttf"));
            //tx.setText("\uFEB3\uFE92\uFE98\uFE94");
            //tx.setText("\u0641\u0631\u0633");
            tx.setText(ArabicUtilities.reshape("\u0641\u0631\u0633"));//
            //tx.setText("hello");
        }
        
        
        catch(Exception ex){
            tx.setText("font cannot load: "+ ex.toString() );
        } 
            
        
    }
}